﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;
using Lswweb.Domain;
using Lswweb.Model;

namespace Lswweb.Controls
{
    public class ProductWholesaleRuleList: SkinnedGridView<ProductWholesaleRuleInfo>
    {
        protected override IList<ProductWholesaleRuleInfo> GridViewDataSourceHandler(int pageIndex, int pageSize, out int totalRecord)
        {
            IList<ProductWholesaleRuleInfo> entities = ProductWholesaleRule.FindAll();
            totalRecord = entities.Count;
            return entities;
        }

        protected override string DefaultSkinFilename
        {
            get { return "Products/WholesaleRuleList.ascx"; }
        }
    }
}
